package oop.java0324.multidiver;

/**
 * 飞机有飞行高度、座位数等属性，有起飞、降落方法
 */
public class Air {
    double high;//高度
    int seat;//座位数

    public Air(double high, int seat) {
        this.high = high;
        this.seat = seat;
    }

    public void fly() {
        System.out.println("飞机起飞");
    }

    public void down() {
        System.out.println("打开起落架，准备降落");
    }

    public void showInfo() {
        System.out.println("C919能飞上" + high + "米的高空，有" + seat + "个座位");
    }
}
